import Vue from "vue";
import Vuex from "vuex";
import user from "./modules/user";
import menu from "./modules/menu";
Vue.use(Vuex);

const store = new Vuex.Store({
  // 组合模块的配置项
  modules: {
    // 模块名
    user,
    menu,
  },
});

export default store;
